
package net.vinote.smart.platform.service.bean;

import net.vinote.smart.platform.module.database.Entity;

/**
 * 显示模板详情
 */
public class DataWindowLibrary extends Entity
{
	/** 显示模板编号 */
	private String doNo;

	/** 要素编号 */
	private String fieldCode;

	/** 要素名称 */
	private String fieldName;

	/**
	 * 数据正则表达式
	 */
	private String regex;

	/**
	 * 无效数据提示细心
	 */
	private String invalidMessage;

	/** 排序 */
	private String sortNo;

	/** 数据对象 */
	private String dataObj;

	/** 表字段 */
	private String colField;

	/** 显示标签 */
	private String showTag;

	/** 显示后缀 */
	private String afterField;

	/** 是否可查询 */
	private boolean isFilter;

	/** 是否必须 */
	private boolean isRequired;

	/** 是否可见 */
	private boolean isVisible;

	/** 是否只读 */
	private boolean isReadOnly;

	/** 是否可用 */
	private boolean isInuse;

	/** 显示样式 */
	private String htmlStyle;

	/** 显示来源 */
	private String htmlSource;

	/** 来源值 */
	private String htmlVal;

	/** 占用列数 */
	private int colspan;

	/** 占用行数 */
	private int rowspan;

	public String getAfterField()
	{
		return afterField;
	}

	public void setAfterField(String afterField)
	{
		this.afterField = afterField;
	}

	public String getColField()
	{
		return colField;
	}

	public void setColField(String colField)
	{
		this.colField = colField;
	}

	public String getDataObj()
	{
		return dataObj;
	}

	public void setDataObj(String dataObj)
	{
		this.dataObj = dataObj;
	}

	public String getDoNo()
	{
		return doNo;
	}

	public void setDoNo(String doNo)
	{
		this.doNo = doNo;
	}

	public String getFieldCode()
	{
		return fieldCode;
	}

	public void setFieldCode(String fieldCode)
	{
		this.fieldCode = fieldCode;
	}

	public String getFieldName()
	{
		return fieldName;
	}

	public void setFieldName(String fieldName)
	{
		this.fieldName = fieldName;
	}

	public String getHtmlSource()
	{
		return htmlSource;
	}

	public void setHtmlSource(String htmlSource)
	{
		this.htmlSource = htmlSource;
	}

	public String getHtmlStyle()
	{
		return htmlStyle;
	}

	public void setHtmlStyle(String htmlStyle)
	{
		this.htmlStyle = htmlStyle;
	}

	public String getHtmlVal()
	{
		return htmlVal;
	}

	public void setHtmlVal(String htmlVal)
	{
		this.htmlVal = htmlVal;
	}

	public boolean isFilter()
	{
		return isFilter;
	}

	public void setFilter(boolean isFilter)
	{
		this.isFilter = isFilter;
	}

	public boolean isInuse()
	{
		return isInuse;
	}

	public void setInuse(boolean isInuse)
	{
		this.isInuse = isInuse;
	}

	public boolean isReadOnly()
	{
		return isReadOnly;
	}

	public void setReadOnly(boolean isReadOnly)
	{
		this.isReadOnly = isReadOnly;
	}

	public boolean isRequired()
	{
		return isRequired;
	}

	public void setRequired(boolean isRequired)
	{
		this.isRequired = isRequired;
	}

	public boolean isVisible()
	{
		return isVisible;
	}

	public void setVisible(boolean isVisible)
	{
		this.isVisible = isVisible;
	}

	public String getShowTag()
	{
		return showTag;
	}

	public void setShowTag(String showTag)
	{
		this.showTag = showTag;
	}

	public String getSortNo()
	{
		return sortNo;
	}

	public void setSortNo(String sortNo)
	{
		this.sortNo = sortNo;
	}

	public int getColspan()
	{
		return colspan >= 0 ? colspan : 1;// 若未设置该值,BeanEntityFactory会为其赋-1
	}

	public void setColspan(int colspan)
	{
		this.colspan = colspan;
	}

	public int getRowspan()
	{
		return rowspan > 0 ? rowspan : 1;// 该值必须大于0
	}

	public void setRowspan(int rowspan)
	{
		this.rowspan = rowspan;
	}

	public String getRegex()
	{
		return regex;
	}

	public void setRegex(String regex)
	{
		this.regex = regex;
	}

	public String getInvalidMessage()
	{
		return invalidMessage;
	}

	public void setInvalidMessage(String invalidMessage)
	{
		this.invalidMessage = invalidMessage;
	}

}
